<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>天气查询</title>
		<LINK rel="stylesheet" type="text/css" href="style/style.css">
	</head>
	<body>
		<DIV id="pmk_sj_top" class="pmk_sj_show"><A id="pmk_sj_top_home" href="http://www.51240.com/"></A>便民查询网</DIV>
		<DIV id="top" class="pmk_990_show pmk_1040_show"></DIV>
		<DIV id="main">
			<DIV id="sy_ss_srk" class="kuang pmk_990_show pmk_1040_show">
			<DIV id="main_title" class="kuang_title">
			<DIV style="float: left;">请输入城市名称查询未来三天的天气</DIV>
		</DIV>
		<BR>
		<DIV style="width: 495px; margin-right: auto; margin-left: auto;">
			<form action="queryWeatherSubmit.action" method="post">
				<INPUT style="width: 380px;" id="sy_ssname_nr"  name="cityName" type="text">
				<INPUT style="width: 100px;" id="sy_button" name="sy_button" value="天气查询" type="submit">
				<BR>
				<DIV align="center">
					<!-- 执行jsp动态脚本,显示天气信息 -->
					<c:forEach items="${weatherList}" var="weather">
						${weather.detail } || 
						<img src="images/weather/${weather.img }"/>
					</c:forEach>
				</DIV>
			</form>
			<BR><BR>
		</DIV>
	</body>
</html>